/*
 * Copyright (c) 2002-2017 Huha City Group Holding Limited. All rights reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
package me.huha.zhime.entity;

import javax.persistence.Table;

import me.huha.ibatis.Entity;

/**
 * @Title: WechatAsynchEntity
 * @Author: Yepx
 * @mail: yepx2013@gmail.com
 * @CreateTime: 2016年12月14日 上午11:45:34
 * @Todo: 微信支付异步推送数据
 */
@Table
@javax.persistence.Entity
public class WechatAsynchEntity extends Entity<WechatAsynchEntity> {

    /**
	 * 
	 */
    private static final long serialVersionUID = -2395950041925462018L;

   	private String appid;					//	是	String(32)	wx8888888888888888	微信分配的公众账号ID（企业号corpid即为此appId）
   	private String mch_id;					//	是	String(32)	1900000109	微信支付分配的商户号
   	private String device_info;				//	否	String(32)	013467007045764	微信支付分配的终端设备号，
   	private String nonce_str;				//	是	String(32)	5K8264ILTKCH16CQ2502SI8ZNMTM67VS	随机字符串，不长于32位
   	private String sign;					//	是	String(32)	C380BEC2BFD727A4B6845133519F3AD6	签名，详见签名算法
   	private String sign_type;				//	否	String(32)	HMAC-SHA256	签名类型，目前支持HMAC-SHA256和MD5，默认为MD5
   	private String result_code;				//	是	String(16)	SUCCESS	SUCCESS/FAIL
   	private String err_code;				//	否	String(32)	SYSTEMERROR	错误返回的信息描述
   	private String err_code_des;			//	否	String(128)	系统错误	错误返回的信息描述
   	private String openid;					//	是	String(128)	wxd930ea5d5a258f4f	用户在商户appid下的唯一标识
   	private String is_subscribe;			//	否	String(1)	Y	用户是否关注公众账号，Y-关注，N-未关注，仅在公众账号类型支付有效
   	private String trade_type;				//	是	String(16)	JSAPI	JSAPI、NATIVE、APP
   	private String bank_type;				//	是	String(16)	CMC	银行类型，采用字符串类型的银行标识，银行类型见银行列表
   	private String total_fee;				//	是	Int	100	订单总金额，单位为分
   	private String settlement_total_fee;	//	否	Int	100	应结订单金额=订单金额-非充值代金券金额，应结订单金额<=订单金额。
   	private String fee_type;				//	否	String(8)	CNY	货币类型，符合ISO4217标准的三位字母代码，默认人民币：CNY，其他值列表详见货币类型
   	private String cash_fee;				//	是	Int	100	现金支付金额订单现金支付金额，详见支付金额
   	private String cash_fee_type;			//	否	String(16)	CNY	货币类型，符合ISO4217标准的三位字母代码，默认人民币：CNY，其他值列表详见货币类型
   	private String coupon_fee;				//	否	Int	10	代金券金额<=订单金额，订单金额-代金券金额=现金支付金额，详见支付金额
   	private String coupon_count;			//	否	Int	1	代金券使用数量
   	private String transaction_id;			//	是	String(32)	1217752501201407033233368018	微信支付订单号
   	private String out_trade_no;			//	是	String(32)	1212321211201407033568112322	商户系统内部订单号，要求32个字符内，只能是数字、大小写字母_-|*@ ，且在同一个商户号下唯一。
   	private String attach;					//	否	String(128)	123456	商家数据包，原样返回
   	private String time_end;				//	是	String(14)	20141030133525	支付完成时间，格式为yyyyMMddHHmmss，如2009年12月25日9点10分10秒表示为20091225091010。其他详见时间规则
	
   	
   	
   	public WechatAsynchEntity(String appid, String mch_id, String device_info,
			String nonce_str, String sign, String sign_type,
			String result_code, String err_code, String err_code_des,
			String openid, String is_subscribe, String trade_type,
			String bank_type, String total_fee, String settlement_total_fee,
			String fee_type, String cash_fee, String cash_fee_type,
			String coupon_fee, String coupon_count, String transaction_id,
			String out_trade_no, String attach, String time_end) {
		
   		super();
		this.appid = appid;
		this.mch_id = mch_id;
		this.device_info = device_info;
		this.nonce_str = nonce_str;
		this.sign = sign;
		this.sign_type = sign_type;
		this.result_code = result_code;
		this.err_code = err_code;
		this.err_code_des = err_code_des;
		this.openid = openid;
		this.is_subscribe = is_subscribe;
		this.trade_type = trade_type;
		this.bank_type = bank_type;
		this.total_fee = total_fee;
		this.settlement_total_fee = settlement_total_fee;
		this.fee_type = fee_type;
		this.cash_fee = cash_fee;
		this.cash_fee_type = cash_fee_type;
		this.coupon_fee = coupon_fee;
		this.coupon_count = coupon_count;
		this.transaction_id = transaction_id;
		this.out_trade_no = out_trade_no;
		this.attach = attach;
		this.time_end = time_end;
	}
	
   	public String getAppid() {
		return appid;
	}
	public void setAppid(String appid) {
		this.appid = appid;
	}
	public String getMch_id() {
		return mch_id;
	}
	public void setMch_id(String mch_id) {
		this.mch_id = mch_id;
	}
	public String getDevice_info() {
		return device_info;
	}
	public void setDevice_info(String device_info) {
		this.device_info = device_info;
	}
	public String getNonce_str() {
		return nonce_str;
	}
	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
	}
	public String getSign() {
		return sign;
	}
	public void setSign(String sign) {
		this.sign = sign;
	}
	public String getSign_type() {
		return sign_type;
	}
	public void setSign_type(String sign_type) {
		this.sign_type = sign_type;
	}
	public String getResult_code() {
		return result_code;
	}
	public void setResult_code(String result_code) {
		this.result_code = result_code;
	}
	public String getErr_code() {
		return err_code;
	}
	public void setErr_code(String err_code) {
		this.err_code = err_code;
	}
	public String getErr_code_des() {
		return err_code_des;
	}
	public void setErr_code_des(String err_code_des) {
		this.err_code_des = err_code_des;
	}
	public String getOpenid() {
		return openid;
	}
	public void setOpenid(String openid) {
		this.openid = openid;
	}
	public String getIs_subscribe() {
		return is_subscribe;
	}
	public void setIs_subscribe(String is_subscribe) {
		this.is_subscribe = is_subscribe;
	}
	public String getTrade_type() {
		return trade_type;
	}
	public void setTrade_type(String trade_type) {
		this.trade_type = trade_type;
	}
	public String getBank_type() {
		return bank_type;
	}
	public void setBank_type(String bank_type) {
		this.bank_type = bank_type;
	}
	public String getTotal_fee() {
		return total_fee;
	}
	public void setTotal_fee(String total_fee) {
		this.total_fee = total_fee;
	}
	public String getSettlement_total_fee() {
		return settlement_total_fee;
	}
	public void setSettlement_total_fee(String settlement_total_fee) {
		this.settlement_total_fee = settlement_total_fee;
	}
	public String getFee_type() {
		return fee_type;
	}
	public void setFee_type(String fee_type) {
		this.fee_type = fee_type;
	}
	public String getCash_fee() {
		return cash_fee;
	}
	public void setCash_fee(String cash_fee) {
		this.cash_fee = cash_fee;
	}
	public String getCash_fee_type() {
		return cash_fee_type;
	}
	public void setCash_fee_type(String cash_fee_type) {
		this.cash_fee_type = cash_fee_type;
	}
	public String getCoupon_fee() {
		return coupon_fee;
	}
	public void setCoupon_fee(String coupon_fee) {
		this.coupon_fee = coupon_fee;
	}
	public String getCoupon_count() {
		return coupon_count;
	}
	public void setCoupon_count(String coupon_count) {
		this.coupon_count = coupon_count;
	}
	public String getTransaction_id() {
		return transaction_id;
	}
	public void setTransaction_id(String transaction_id) {
		this.transaction_id = transaction_id;
	}
	public String getOut_trade_no() {
		return out_trade_no;
	}
	public void setOut_trade_no(String out_trade_no) {
		this.out_trade_no = out_trade_no;
	}
	public String getAttach() {
		return attach;
	}
	public void setAttach(String attach) {
		this.attach = attach;
	}
	public String getTime_end() {
		return time_end;
	}
	public void setTime_end(String time_end) {
		this.time_end = time_end;
	}
    
}
